package ui;

import java.awt.Color;
import java.awt.Font;
import java.awt.event.ActionListener;

import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.SwingConstants;
import javax.swing.UIManager;

public class DepositFundsMenu extends JPanel {
	private JLabel lblXA9;
	private JLabel lblDepositFundsMenu;
	private JLabel lblPleaseSelectAccount;
	private JLabel lblLogo;
	private JButton btnReturn;
	private JButton btnSpendingAccount;
	private JButton btnSavingsAccount;

	public DepositFundsMenu() {
		setBackground(UIManager.getColor("Label.background"));
		setLayout(null);

		lblXA9 = new JLabel("\u00A92013 CBS HA.IT (Gruppe XA-9)\t\t ");
		lblXA9.setForeground(UIManager.getColor("Button.darkShadow"));
		lblXA9.setBackground(UIManager.getColor("Button.darkShadow"));
		lblXA9.setHorizontalAlignment(SwingConstants.CENTER);
		lblXA9.setFont(new Font("Eurostile", Font.PLAIN, 11));
		lblXA9.setBounds(0, 423, 735, 50);
		add(lblXA9);

		btnReturn = new JButton("Return to main menu");
		btnReturn.setForeground(UIManager.getColor("CheckBox.select"));
		btnReturn.setFont(new Font("Eurostile", Font.PLAIN | Font.BOLD, 13));
		btnReturn.setBounds(156, 233, 200, 50);
		add(btnReturn);

		lblDepositFundsMenu = new JLabel("Deposit funds menu");
		lblDepositFundsMenu.setOpaque(true);
		lblDepositFundsMenu.setBackground(UIManager.getColor("Label.background"));
		lblDepositFundsMenu.setHorizontalAlignment(SwingConstants.CENTER);
		lblDepositFundsMenu.setForeground(Color.BLACK);
		lblDepositFundsMenu.setFont(new Font("Eurostile", Font.BOLD, 24));
		lblDepositFundsMenu.setBounds(0, 94, 735, 28);
		add(lblDepositFundsMenu);

		lblPleaseSelectAccount = new JLabel(
				"Please enter to which account you want to insert money");
		lblPleaseSelectAccount.setHorizontalAlignment(SwingConstants.CENTER);
		lblPleaseSelectAccount.setForeground(Color.BLACK);
		lblPleaseSelectAccount.setFont(new Font("Eurostile", Font.PLAIN, 14));
		lblPleaseSelectAccount.setBounds(0, 128, 735, 16);
		add(lblPleaseSelectAccount);

		btnSpendingAccount = new JButton("Spending account");
		btnSpendingAccount.setFont(new Font("Eurostile", Font.BOLD, 13));
		btnSpendingAccount.setBounds(156, 170, 200, 55);
		add(btnSpendingAccount);

		btnSavingsAccount = new JButton("Savings account");
		btnSavingsAccount.setFont(new Font("Eurostile", Font.BOLD, 13));
		btnSavingsAccount.setBounds(369, 170, 200, 55);
		add(btnSavingsAccount);

		lblLogo = new JLabel("");
		lblLogo.setIcon(new ImageIcon("/Users/martinotto-sidelmann/Desktop/Zombium.png"));
		lblLogo.setBounds(530, 12, 200, 70);
		add(lblLogo);

	}

	public JButton getBtnSpendingAccount() {
		return btnSpendingAccount;
	}

	public JButton getBtnSavingsAccount() {
		return btnSavingsAccount;
	}

	public JButton getBtnReturn() {
		return btnReturn;
	}

	public void addActionListener(ActionListener l) {
		btnReturn.addActionListener(l);
		btnSpendingAccount.addActionListener(l);
		btnSavingsAccount.addActionListener(l);

	}
}
